<%@taglib  uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@taglib  uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>

<TABLE class="mainService">
    <TR>
        <TD colSpan=1>
            <TABLE class="table0" cellSpacing=0 cellPadding=0 align=center>
                <TR>
                    <TD class="td1"></TD>
                    <TD class="top"></TD>
                    <TD class="topright"></TD>
                </TR>
                <TR>
                    <TD class="middleleft" rowSpan=3></TD>
                    <TD bgcolor="#hhhhhh">

                    </TD>
                    <TD class="middleright" rowSpan=3></TD>
                </TR>
                <TR>
                    <TD class="middlecenter"></TD>
                </TR>
                <TR>
                    <TD  class="main">
                        <pg:pager url="hotel.do" maxIndexPages="4" maxPageItems="4">
                            <pg:param name="action" value="listHotel"/>

                        <table width="100%" border="0"  >
                            <logic:present name="listHotel">
                                <logic:iterate id="list" name="listHotel">
                                    <pg:item>
                                        <tr>
                                            <td rowspan="8" width="250" height="120" valign="middle" align="center">
                            <h9> <a href="hotel.do?action=hotelDetail&id=<bean:write name="list" property="hotelId"/>">  <img src="${list.imagesUrl}" width="150" height="100"/></a></h9>
                                </td>
                               
                                <td height="20" width="200"><h8>Name Hotel :</h8></td>
                        <td><font color="blue"> <a href="hotel.do?action=hotelDetail&id=<bean:write name="list" property="hotelId"/>"> <bean:write name="list" property="hotelName"/></a></font></td>
                            </tr>
                            <tr>
                                <td height="20"><h8>Email :</h8></td>
                                <td>
                                     <bean:write name="list" property="email"/>
                                </td>
                            </tr>
                            <tr>
                                <td height="20"><h8>Website:</h8></td>
                                <td>
                                    
                                     <a href="http://www.<bean:write name="list" property="website"/>" target="blank"><bean:write name="list" property="website"/></a>
                                </td>
                            </tr>
                            <tr>
                                <td height="20"><h8>Rate:</h8></td>
                                <td>
                                    <bean:write name="list" property="rate"/>
                                </td>
                            </tr>
                            <tr>
                                <td height="20"><h8>Phone :</h8> </td>
                                <td>
                                     <bean:write name="list" property="phone"/>
                                </td>
                            </tr>                           
                            <tr>
                                <td height="20"><h8>City :</h8> </td>
                                <td>
                                     <bean:write name="list" property="city"/>
                                </td>
                            </tr>
                            <tr>
                                <td height="20"><h8>Address :</h8> </td>
                                <td>
                                     <bean:write name="list" property="address"/>
                                </td>
                            </tr>
                           
                             <tr>

                                 <td colspan="3" bgcolor="#E9E9E9" height="2"></td>
                            </tr>
        
                                    </pg:item>
                                </logic:iterate>
                            </logic:present>
                        </table>
                             <table>
                                <tr>
                                    <td>
                                        <pg:index>
                                            <pg:prev><a class="pre pointer disable" href="${pageUrl}">[&lt;&lt;Prev]</a></pg:prev>
                                            <span class="pages">
                                                <pg:pages><a class="pointer searchByPage unlink" href="${pageUrl}">${pageNumber}</a> | </pg:pages>
                                            </span>
                                            <pg:next><a  class="nxt pointer" href="${pageUrl}">[Next&gt;&gt;]</a></pg:next>
                                        </pg:index>
                                    </td>
                                </tr>
                            </table>
                             </pg:pager>
                    </TD>
                </TR>
                <TR>
                    <TD class="bottom"><IMG border=0 alt="" src="img/pod_main_bottom_left.gif"></TD>
                    <TD class="bottomright"><P align=right>&nbsp;</P></TD>
                    <TD class="bottomleft"><IMG border=0 alt="" src="img/pod_main_bottom_right.gif"></TD>
                </TR>
            </TABLE>
        </TD>
    </TR>
</TABLE>
<br>
